﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddEvectionInfo.aspx.cs" Inherits="admin_AddEvectionInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        
        <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
        <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>

    <style type="text/css">
<!--
html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
-->
</style>


</head>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">出差登记</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
  <br />
    <div class="dengji_kong"></div>  
    <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
      <tr>
        <td colspan="5" style=" font-size:14px; font-weight:bold;">出差登记</td>
      </tr>

      <tr>
        <td width="80" align="center">出差地区</td>
        <td colspan="4"><label>
          <asp:TextBox ID="txtEvectionAddress" runat="server" Width="334px"></asp:TextBox>
        </label></td>
      </tr>
      <tr>
        <td width="80" align="center">出差日期</td>

        <td width="80" align="center">起始日期</td>
        <td>
          <asp:TextBox ID="txtBeginDate" runat="server" CssClass="Wdate" onClick="WdatePicker()"></asp:TextBox></td>
        <td width="80" align="center">终止日期</td>
        <td>
          <asp:TextBox ID="txtEndDate" runat="server" CssClass="Wdate" onClick="WdatePicker()"></asp:TextBox></td>
      </tr>

      
      <tr>
        <td colspan="5">
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="" OnClientClick="return checkfrm()" CssClass="tijiao_anniu tijiao_pad"/>

            <asp:Button ID="Button3" runat="server" Text="" PostBackUrl="~/admin/EvectionInfoList.aspx" CssClass="fanhui_anniu"/>
          </td>
        </tr>
    </table>
  </div>
</div>
    </form>
</body>
</html>
<script type="text/javascript">
    function checkfrm()
    {
        if(document.getElementById('txtEvectionAddress').value=='')
        {
            alert('出差地区不能为空！');
            return false;
        }
        if(document.getElementById('txtEvectionAddress').value.length>200)
        {
            alert('出差地区最大长度不能大于200个字符！');
            return false;
        }
        if(document.getElementById('txtBeginDate').value=='')
        {
            alert('开始时间不能为空！');
            return false;
        }
        if(document.getElementById('txtEndDate').value=='')
        {
            alert('结束时间不能为空！');
            return false;
        }
        return true;
    }
</script>